import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import 'lib-flexible/flexible'
import './common/style/theme.css'
import 'vant/es/toast/style'
import { Swipe, SwipeItem, Button, Toast, Icon, Form, Field, ActionBar, ActionBarIcon, ActionBarButton } from 'vant'
import store from './store/cart'

const app = createApp(App)

app.use(store)
app.use(router)
app.use(Swipe)
    .use(SwipeItem)
    .use(Button)
    .use(Toast)
    .use(Icon)
    .use(Form)
    .use(Field)
    .use(ActionBar)
    .use(ActionBarIcon)
    .use(ActionBarButton)
app.mount('#app')
